package com.wqtz.chechai.view.activities;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.wqtz.chechai.R;
import com.wqtz.chechai.base.BaseActivity;
import com.wqtz.chechai.presenter.BasePresent;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 项目名称： CheChai
 * 创建人 : Liberation
 * 创建时间: 2017/2/10 10:06
 */

public class DrivingLicenseViewActivity extends BaseActivity {
	@BindView(R.id.iv_back)
	ImageView mIvBack;
	@BindView(R.id.tv_title)
	TextView mTvTitle;
	@BindView(R.id.top)
	RelativeLayout mTop;
	@BindView(R.id.carbook1)
	TextView mCarbook1;
	@BindView(R.id.iv_cha_pic)
	ImageView mIvChaPic;
	@BindView(R.id.tv_cha_next)
	TextView mTvChaNext;
	@BindView(R.id.ll_driving_download_1)
	LinearLayout mLlDrivingDownload1;
	@BindView(R.id.catboot2)
	TextView mCatboot2;
	@BindView(R.id.iv_cha_pic_2)
	ImageView mIvChaPic2;
	@BindView(R.id.tv_cha_next_2)
	TextView mTvChaNext2;
	@BindView(R.id.ll_driving_download_2)
	LinearLayout mLlDrivingDownload2;
	private ArrayList<String> images;

	@Override
	public void init() {
		ButterKnife.bind(this);
		images = new ArrayList<>();
		images.add("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1486720758047&di=4b5196c25ae5346bffd3cb15f6d7815b&imgtype=0&src=http%3A%2F%2Fp3.pstatp.com%2Flarge%2Fefb00012c22469ce0ee");
		images.add("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1486720758047&di=6757229e5499f93cdc39375ae00a3641&imgtype=0&src=http%3A%2F%2Fimage.uc.cn%2Fo%2Fwemedia%2Fs%2F2016911%2Fe325cb16d6028c85317fab0ca48f027c%3B%2C3%2Cjpegx%3B3%2C700x.jpg");
	}

	@Override
	public void loadData() {

	}

	@Override
	public int setContentViews() {
		return R.layout.activity_drivinglicenseview;
	}

	@Override
	public BasePresent createPresenter() {
		return null;
	}


	@OnClick({R.id.iv_back, R.id.ll_driving_download_1, R.id.ll_driving_download_2})
	public void onClick(View view) {
		switch (view.getId()) {
			case R.id.iv_back:
				finish();
				break;
			case R.id.ll_driving_download_1:
			case R.id.ll_driving_download_2:
				CarDrivingBooksViewActivity.startActivity(this,images,0);
				break;
		}
	}

	@Override
	protected void onResume() {
		super.onResume();
		activitys.add(this); //添加当前的activity
	}
}
